//    Copyright (C) 2013  <lugocreation@gmail.com>
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
package org.jpgolay.me.piece;

import java.awt.*;
import java.awt.event.*;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.*;
import javax.swing.border.SoftBevelBorder;
import org.jpgolay.gui.fixed.*;
import org.jpgolay.gui.iconBar.IconBar;
import org.jpgolay.me.reminder.ReminderWPGUI;
import org.jpgolay.me.statistic.StatisticsWelcomePiecesGUI;
import org.jpgolay.me.util.Parameter;

// Referenced classes of package org.jpgolay.me.piece:
//            Messages, PopupPieceGUI
public class PiecesGUI extends JInternalFrame {

    public PiecesGUI() {
        mainPanel = null;
        mainJSplitPane = null;
        piecesJTabbedPane = null;
        listJPanel = null;
        basicMenu = null;
        iconBar = null;
        paymentJPanel = null;
        customerJPanel = null;
        supplierJPanel = null;
        itemJPanel = null;
        piecesJPanel = null;
        deliveryJPanel = null;
        groupDeliveryNoteJPanel = null;
        pieceButtonTopJPanel = null;
        pieceMainJPanel = null;
        pieceButtonBottomJPanel = null;
        deliveryButtonTopJPanel = null;
        deliveryMainJPanel = null;
        deliveryButtonBottomJPanel = null;
        groupButtonTopJPanel = null;
        groupMainJPanel = null;
        groupButtonBottomJPanel = null;
        paymentButtonTopJPanel = null;
        paymentMainJPanel = null;
        paymentButtonBottomJPanel = null;
        customerButtonTopJPanel = null;
        customerMainJPanel = null;
        customerButtonBottomJPanel = null;
        supplierBottonTopJPanel = null;
        supplierMainJPanel = null;
        supplierButtonBottomJPanel = null;
        itemButtonBottomJPanel = null;
        itemButtonTopJPanel = null;
        itemMainJPanel = null;
        piecesPiecesB = null;
        piecesDeliveryB = null;
        piecesGroupB = null;
        piecesPaymentB = null;
        piecesCustomerB = null;
        piecesSupplierB = null;
        piecesItemB = null;
        deliveryPiecesB = null;
        deliveryDeliveryB = null;
        deliveryGroupB = null;
        deliveryPaymentB = null;
        deliveryCustomerB = null;
        deliverySupplierB = null;
        deliveryItemB = null;
        groupPiecesB = null;
        groupDeliveryB = null;
        groupGroupB = null;
        groupPaymentB = null;
        groupCustomerB = null;
        groupSupplierB = null;
        groupItemB = null;
        paymentPieceB = null;
        paymentDeliveryB = null;
        paymentGroupB = null;
        paymentPaymentB = null;
        paymentCustomerB = null;
        paymentSupplierB = null;
        paymentItemB = null;
        customerPiecesB = null;
        customerDeliveryB = null;
        customerGroupB = null;
        customerPaymentB = null;
        customerCustomerB = null;
        customerSupplierB = null;
        customerItemB = null;
        supplierItemB = null;
        supplierPiecesB = null;
        supplierDeliveryB = null;
        supplierGroupB = null;
        supplierPaymentB = null;
        supplierCustomerB = null;
        supplierSupplierB = null;
        itemPiecesB = null;
        itemDeliveryB = null;
        itemGroupB = null;
        itemPaymentB = null;
        itemCustomerB = null;
        itemSupplierB = null;
        itemItemB = null;
        welcomeJPanel = null;
        welcomeStatJPanel = null;
        welcomeButtonPanel = null;
        welcomePiecesB = null;
        welcomeDeliveryB = null;
        welcomeGroupB = null;
        welcomePaymentB = null;
        welcomeCustomerB = null;
        welcomeSupplierB = null;
        welcomeItemB = null;
        piecesSearch = null;
        piecesTable = null;
        deliverySearch = null;
        deliveryTable = null;
        groupTable = null;
        paymentTable = null;
        customerSearch = null;
        customerTable = null;
        supplierSearch = null;
        supplierTable = null;
        itemSearch = null;
        itemTable = null;
        paymentListTable = null;
        reminderTable = null;
        paymentListJPanel = null;
        jSplitPane1 = null;
        paymentJSplitPane = null;
        paymentSearch = null;
        groupSearch = null;
        groupExecut = null;
        bottomJPanel = null;
        statisticsWelcomePiecesGUI = null;
        popupPiece = null;
        reminderWPGUI = null;
        initialize();
    }

    private void initialize() {
        setJMenuBar(getBasicMenu());
        setTitle(Messages.getString("PiecesGUI.title"));
        setFrameIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces18x18.png")));
        setSize(835, 689);
        setContentPane(getMainPanel());
        pack();
    }

    private JPanel getMainPanel() {
        if (mainPanel == null) {
            mainPanel = new JPanel();
            mainPanel.setLayout(new BorderLayout());
            mainPanel.add(getIconBarPanel(), "North");
            mainPanel.add(getMainJSplitPane(), "Center");
        }
        return mainPanel;
    }

    private IconBar getIconBarPanel() {
        if (iconBar == null) {
            iconBar = new IconBar();
        }
        return iconBar;
    }

    private JSplitPane getMainJSplitPane() {
        if (mainJSplitPane == null) {
            mainJSplitPane = new JSplitPane();
            mainJSplitPane.setDividerLocation(638);
            mainJSplitPane.setLeftComponent(getPiecesJTabbedPane());
            mainJSplitPane.setRightComponent(getListJPanel());
            mainJSplitPane.setOneTouchExpandable(true);
        }
        return mainJSplitPane;
    }

    private JTabbedPane getPiecesJTabbedPane() {
        if (piecesJTabbedPane == null) {
            piecesJTabbedPane = new JTabbedPane();
            piecesJTabbedPane.setTabPlacement(3);
            piecesJTabbedPane.setTabLayoutPolicy(1);
            piecesJTabbedPane.addMouseListener(new MouseAdapter() {
                public void mouseClicked(MouseEvent e) {
                    if (e.getButton() != 1) {
                        getPopupPiece().show(e.getComponent(), e.getX(), e.getY());
                    }
                }
            });
        }
        return piecesJTabbedPane;
    }

    private PopupPieceGUI getPopupPiece() {
        if (popupPiece == null) {
            popupPiece = new PopupPieceGUI();
            popupPiece.getClose().addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    removePiece();
                }
            });
            popupPiece.getCloseAll().addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    removeAllPieces();
                }
            });
        }
        return popupPiece;
    }

    private JPanel getListJPanel() {
        if (listJPanel == null) {
            listJPanel = new JPanel();
            listJPanel.setLayout(new CardLayout());
            listJPanel.add(getWelcomeJPanel(), getWelcomeJPanel().getName());
            listJPanel.add(getPiecesJPanel(), getPiecesJPanel().getName());
            listJPanel.add(getDeliveryJPanel(), getDeliveryJPanel().getName());
            listJPanel.add(getGroupDelivertNoteJPanel(), getGroupDelivertNoteJPanel().getName());
            listJPanel.add(getPaymentJPanel(), getPaymentJPanel().getName());
            listJPanel.add(getCustomerJPanel(), getCustomerJPanel().getName());
            listJPanel.add(getSupplierJPanel(), getSupplierJPanel().getName());
            listJPanel.add(getItemJPanel(), getItemJPanel().getName());
        }
        return listJPanel;
    }

    private BasicMenu getBasicMenu() {
        if (basicMenu == null) {
            basicMenu = new BasicMenu();
        }
        return basicMenu;
    }

    private JPanel getPaymentJPanel() {
        if (paymentJPanel == null) {
            paymentJPanel = new JPanel();
            paymentJPanel.setLayout(new BorderLayout());
            paymentJPanel.setName("paymentJPanel");
            paymentJPanel.add(getPaymentButtonTopJPanel(), "North");
            paymentJPanel.add(getPaymentMainJPanel(), "Center");
            paymentJPanel.add(getPaymentButtonBottomJPanel(), "South");
        }
        return paymentJPanel;
    }

    private JPanel getCustomerJPanel() {
        if (customerJPanel == null) {
            customerJPanel = new JPanel();
            customerJPanel.setLayout(new BorderLayout());
            customerJPanel.setName("customerJPanel");
            customerJPanel.add(getCustomerButtonTopJPanel(), "North");
            customerJPanel.add(getCustomerMainJPanel(), "Center");
            customerJPanel.add(getCustomerButtonBottomJPanel(), "South");
        }
        return customerJPanel;
    }

    private JPanel getSupplierJPanel() {
        if (supplierJPanel == null) {
            supplierJPanel = new JPanel();
            supplierJPanel.setLayout(new BorderLayout());
            supplierJPanel.setName("supplierJPanel");
            supplierJPanel.add(getSupplierBottonTopJPanel(), "North");
            supplierJPanel.add(getSupplierMainJPanel(), "Center");
            supplierJPanel.add(getSupplierButtonBottomJPanel(), "South");
        }
        return supplierJPanel;
    }

    private JPanel getItemJPanel() {
        if (itemJPanel == null) {
            itemJPanel = new JPanel();
            itemJPanel.setLayout(new BorderLayout());
            itemJPanel.setName("itemJPanel");
            itemJPanel.add(getItemButtonTopJPanel(), "North");
            itemJPanel.add(getItemMainJPanel(), "Center");
            itemJPanel.add(getItemButtonBottomJPanel(), "South");
        }
        return itemJPanel;
    }

    private JPanel getPiecesJPanel() {
        if (piecesJPanel == null) {
            piecesJPanel = new JPanel();
            piecesJPanel.setLayout(new BorderLayout());
            piecesJPanel.setName("pieceJPanel");
            piecesJPanel.add(getPieceButtonTopJPanel(), "North");
            piecesJPanel.add(getPieceMainJPanel(), "Center");
            piecesJPanel.add(getPieceButtonBottomJPanel(), "South");
        }
        return piecesJPanel;
    }

    private JPanel getDeliveryJPanel() {
        if (deliveryJPanel == null) {
            deliveryJPanel = new JPanel();
            deliveryJPanel.setLayout(new BorderLayout());
            deliveryJPanel.setName("deliveryJPanel");
            deliveryJPanel.add(getDeliveryButtonTopJPanel(), "North");
            deliveryJPanel.add(getDeliveryMainJPanel(), "Center");
            deliveryJPanel.add(getDeliveryButtonBottomJPanel(), "South");
        }
        return deliveryJPanel;
    }

    private JPanel getGroupDelivertNoteJPanel() {
        if (groupDeliveryNoteJPanel == null) {
            groupDeliveryNoteJPanel = new JPanel();
            groupDeliveryNoteJPanel.setLayout(new BorderLayout());
            groupDeliveryNoteJPanel.setName("groupDeviveryNoteJPanel");
            groupDeliveryNoteJPanel.add(getGroupButtonTopJPanel(), "North");
            groupDeliveryNoteJPanel.add(getGroupMainJPanel(), "Center");
            groupDeliveryNoteJPanel.add(getGroupButtonBottomJPanel(), "South");
        }
        return groupDeliveryNoteJPanel;
    }

    private JPanel getPieceButtonTopJPanel() {
        if (pieceButtonTopJPanel == null) {
            GridLayout gridLayout1 = new GridLayout();
            pieceButtonTopJPanel = new JPanel();
            pieceButtonTopJPanel.setLayout(gridLayout1);
            gridLayout1.setRows(1);
            gridLayout1.setColumns(1);
            pieceButtonTopJPanel.add(getPiecesPiecesB(), null);
        }
        return pieceButtonTopJPanel;
    }

    private JPanel getPieceMainJPanel() {
        if (pieceMainJPanel == null) {
            pieceMainJPanel = new JPanel();
            pieceMainJPanel.setLayout(new BorderLayout());
            pieceMainJPanel.setBorder(BorderFactory.createLineBorder(Color.blue, 1));
            pieceMainJPanel.add(getPiecesSearch(), "North");
            pieceMainJPanel.add(getPiecesTable(), "Center");
        }
        return pieceMainJPanel;
    }

    private JPanel getPieceButtonBottomJPanel() {
        if (pieceButtonBottomJPanel == null) {
            GridLayout gridLayout2 = new GridLayout();
            pieceButtonBottomJPanel = new JPanel();
            pieceButtonBottomJPanel.setLayout(gridLayout2);
            gridLayout2.setRows(6);
            gridLayout2.setColumns(1);
            pieceButtonBottomJPanel.add(getPiecesDeliveryB(), null);
            pieceButtonBottomJPanel.add(getPiecesGroupB(), null);
            pieceButtonBottomJPanel.add(getPiecesPaymentB(), null);
            pieceButtonBottomJPanel.add(getPiecesCustomerB(), null);
            pieceButtonBottomJPanel.add(getPiecesSupplierB(), null);
            pieceButtonBottomJPanel.add(getPiecesItemB(), null);
        }
        return pieceButtonBottomJPanel;
    }

    private JPanel getDeliveryButtonTopJPanel() {
        if (deliveryButtonTopJPanel == null) {
            GridLayout gridLayout3 = new GridLayout();
            deliveryButtonTopJPanel = new JPanel();
            deliveryButtonTopJPanel.setLayout(gridLayout3);
            gridLayout3.setRows(2);
            gridLayout3.setColumns(1);
            deliveryButtonTopJPanel.add(getDeliveryPiecesB(), null);
            deliveryButtonTopJPanel.add(getDeliveryDeliveryB(), null);
        }
        return deliveryButtonTopJPanel;
    }

    private JPanel getDeliveryMainJPanel() {
        if (deliveryMainJPanel == null) {
            deliveryMainJPanel = new JPanel();
            deliveryMainJPanel.setLayout(new BorderLayout());
            deliveryMainJPanel.setBorder(BorderFactory.createLineBorder(new Color(204, 204, 0), 1));
            deliveryMainJPanel.add(getDeliverySearch(), "North");
            deliveryMainJPanel.add(getDeliveryTable(), "Center");
        }
        return deliveryMainJPanel;
    }

    private JPanel getDeliveryButtonBottomJPanel() {
        if (deliveryButtonBottomJPanel == null) {
            GridLayout gridLayout4 = new GridLayout();
            deliveryButtonBottomJPanel = new JPanel();
            deliveryButtonBottomJPanel.setLayout(gridLayout4);
            gridLayout4.setColumns(1);
            gridLayout4.setRows(5);
            deliveryButtonBottomJPanel.add(getDeliveryGroupB(), null);
            deliveryButtonBottomJPanel.add(getDeliveryPaymentB(), null);
            deliveryButtonBottomJPanel.add(getDeliveryCustomerB(), null);
            deliveryButtonBottomJPanel.add(getDeliverySupplierB(), null);
            deliveryButtonBottomJPanel.add(getDeliveryItemB(), null);
        }
        return deliveryButtonBottomJPanel;
    }

    private JPanel getGroupButtonTopJPanel() {
        if (groupButtonTopJPanel == null) {
            GridLayout gridLayout5 = new GridLayout();
            groupButtonTopJPanel = new JPanel();
            groupButtonTopJPanel.setLayout(gridLayout5);
            gridLayout5.setRows(3);
            gridLayout5.setColumns(1);
            groupButtonTopJPanel.add(getGroupPiecesB(), null);
            groupButtonTopJPanel.add(getGroupDeliveryB(), null);
            groupButtonTopJPanel.add(getGroupGroupB(), null);
        }
        return groupButtonTopJPanel;
    }

    private JPanel getGroupMainJPanel() {
        if (groupMainJPanel == null) {
            groupMainJPanel = new JPanel();
            groupMainJPanel.setLayout(new BorderLayout());
            groupMainJPanel.setBorder(BorderFactory.createLineBorder(Color.yellow, 1));
            groupMainJPanel.add(getGroupSearch(), "North");
            groupMainJPanel.add(getGroupTable(), "Center");
            groupMainJPanel.add(getGroupExecut(), "South");
        }
        return groupMainJPanel;
    }

    private LabelDateButton getGroupExecut() {
        if (groupExecut == null) {
            groupExecut = new LabelDateButton();
        }
        return groupExecut;
    }

    private JPanel getGroupButtonBottomJPanel() {
        if (groupButtonBottomJPanel == null) {
            GridLayout gridLayout6 = new GridLayout();
            groupButtonBottomJPanel = new JPanel();
            groupButtonBottomJPanel.setLayout(gridLayout6);
            gridLayout6.setColumns(1);
            gridLayout6.setRows(4);
            groupButtonBottomJPanel.add(getGroupPaymentB(), null);
            groupButtonBottomJPanel.add(getGroupCustomerB(), null);
            groupButtonBottomJPanel.add(getGroupSupplierB(), null);
            groupButtonBottomJPanel.add(getGroupItemB(), null);
        }
        return groupButtonBottomJPanel;
    }

    private JPanel getPaymentButtonTopJPanel() {
        if (paymentButtonTopJPanel == null) {
            GridLayout gridLayout7 = new GridLayout();
            paymentButtonTopJPanel = new JPanel();
            paymentButtonTopJPanel.setLayout(gridLayout7);
            gridLayout7.setColumns(1);
            gridLayout7.setRows(4);
            paymentButtonTopJPanel.add(getPaymentPieceB(), null);
            paymentButtonTopJPanel.add(getPaymentDeliveryB(), null);
            paymentButtonTopJPanel.add(getPaymentGroupB(), null);
            paymentButtonTopJPanel.add(getPaymentPaymentB(), null);
        }
        return paymentButtonTopJPanel;
    }

    private JPanel getPaymentMainJPanel() {
        if (paymentMainJPanel == null) {
            paymentMainJPanel = new JPanel();
            paymentMainJPanel.setLayout(new BorderLayout());
            paymentMainJPanel.setBorder(BorderFactory.createLineBorder(Color.green, 1));
            paymentMainJPanel.add(getPaymentJSplitPane(), "Center");
        }
        return paymentMainJPanel;
    }

    private JPanel getPaymentButtonBottomJPanel() {
        if (paymentButtonBottomJPanel == null) {
            GridLayout gridLayout8 = new GridLayout();
            paymentButtonBottomJPanel = new JPanel();
            paymentButtonBottomJPanel.setLayout(gridLayout8);
            gridLayout8.setColumns(1);
            gridLayout8.setRows(3);
            paymentButtonBottomJPanel.add(getPaymentCustomerB(), null);
            paymentButtonBottomJPanel.add(getPaymentSupplierB(), null);
            paymentButtonBottomJPanel.add(getPaymentItemB(), null);
        }
        return paymentButtonBottomJPanel;
    }

    private JPanel getCustomerButtonTopJPanel() {
        if (customerButtonTopJPanel == null) {
            GridLayout gridLayout9 = new GridLayout();
            customerButtonTopJPanel = new JPanel();
            customerButtonTopJPanel.setLayout(gridLayout9);
            gridLayout9.setColumns(1);
            gridLayout9.setRows(5);
            customerButtonTopJPanel.add(getCustomerPiecesB(), null);
            customerButtonTopJPanel.add(getCustomerDeliveryB(), null);
            customerButtonTopJPanel.add(getCustomerGroupB(), null);
            customerButtonTopJPanel.add(getCustomerPaymentB(), null);
            customerButtonTopJPanel.add(getCustomerCustomerB(), null);
        }
        return customerButtonTopJPanel;
    }

    private JPanel getCustomerMainJPanel() {
        if (customerMainJPanel == null) {
            customerMainJPanel = new JPanel();
            customerMainJPanel.setLayout(new BorderLayout());
            customerMainJPanel.setBorder(BorderFactory.createLineBorder(Color.orange, 1));
            customerMainJPanel.add(getCustomerSearch(), "North");
            customerMainJPanel.add(getCustomerTable(), "Center");
        }
        return customerMainJPanel;
    }

    private JPanel getCustomerButtonBottomJPanel() {
        if (customerButtonBottomJPanel == null) {
            GridLayout gridLayout10 = new GridLayout();
            customerButtonBottomJPanel = new JPanel();
            customerButtonBottomJPanel.setLayout(gridLayout10);
            gridLayout10.setColumns(1);
            gridLayout10.setRows(2);
            customerButtonBottomJPanel.add(getCustomerSupplierB(), null);
            customerButtonBottomJPanel.add(getCustomerItemB(), null);
        }
        return customerButtonBottomJPanel;
    }

    private JPanel getSupplierBottonTopJPanel() {
        if (supplierBottonTopJPanel == null) {
            GridLayout gridLayout11 = new GridLayout();
            supplierBottonTopJPanel = new JPanel();
            supplierBottonTopJPanel.setLayout(gridLayout11);
            gridLayout11.setColumns(1);
            gridLayout11.setVgap(0);
            gridLayout11.setRows(6);
            supplierBottonTopJPanel.add(getSupplierPiecesB(), null);
            supplierBottonTopJPanel.add(getSupplierDeliveryB(), null);
            supplierBottonTopJPanel.add(getSupplierGroupB(), null);
            supplierBottonTopJPanel.add(getSupplierPaymentB(), null);
            supplierBottonTopJPanel.add(getSupplierCustomerB(), null);
            supplierBottonTopJPanel.add(getSupplierSupplierB(), null);
        }
        return supplierBottonTopJPanel;
    }

    private JPanel getSupplierMainJPanel() {
        if (supplierMainJPanel == null) {
            supplierMainJPanel = new JPanel();
            supplierMainJPanel.setLayout(new BorderLayout());
            supplierMainJPanel.setBorder(BorderFactory.createLineBorder(Color.red, 1));
            supplierMainJPanel.add(getSupplierSearch(), "North");
            supplierMainJPanel.add(getSupplierTable(), "Center");
        }
        return supplierMainJPanel;
    }

    private JPanel getSupplierButtonBottomJPanel() {
        if (supplierButtonBottomJPanel == null) {
            GridLayout gridLayout12 = new GridLayout();
            supplierButtonBottomJPanel = new JPanel();
            supplierButtonBottomJPanel.setLayout(gridLayout12);
            gridLayout12.setColumns(1);
            gridLayout12.setRows(1);
            supplierButtonBottomJPanel.add(getSupplierItemB(), null);
        }
        return supplierButtonBottomJPanel;
    }

    private JPanel getItemButtonBottomJPanel() {
        if (itemButtonBottomJPanel == null) {
            GridLayout gridLayout14 = new GridLayout();
            itemButtonBottomJPanel = new JPanel();
            itemButtonBottomJPanel.setLayout(gridLayout14);
            gridLayout14.setColumns(1);
            gridLayout14.setRows(1);
        }
        return itemButtonBottomJPanel;
    }

    private JPanel getItemButtonTopJPanel() {
        if (itemButtonTopJPanel == null) {
            GridLayout gridLayout13 = new GridLayout();
            itemButtonTopJPanel = new JPanel();
            itemButtonTopJPanel.setLayout(gridLayout13);
            gridLayout13.setColumns(1);
            gridLayout13.setRows(7);
            itemButtonTopJPanel.add(getItemPiecesB(), null);
            itemButtonTopJPanel.add(getItemDeliveryB(), null);
            itemButtonTopJPanel.add(getItemGroupB(), null);
            itemButtonTopJPanel.add(getItemPaymentB(), null);
            itemButtonTopJPanel.add(getItemCustomerB(), null);
            itemButtonTopJPanel.add(getItemSupplierB(), null);
            itemButtonTopJPanel.add(getItemItemB(), null);
        }
        return itemButtonTopJPanel;
    }

    private JPanel getItemMainJPanel() {
        if (itemMainJPanel == null) {
            itemMainJPanel = new JPanel();
            itemMainJPanel.setLayout(new BorderLayout());
            itemMainJPanel.setBorder(BorderFactory.createLineBorder(new Color(153, 0, 255), 1));
            itemMainJPanel.add(getItemSearch(), "North");
            itemMainJPanel.add(getItemTable(), "Center");
        }
        return itemMainJPanel;
    }

    private JButton getPiecesPiecesB() {
        if (piecesPiecesB == null) {
            piecesPiecesB = new JButton();
            piecesPiecesB.setText(Messages.getString("PiecesGUI.piece"));
            piecesPiecesB.setHorizontalAlignment(2);
            piecesPiecesB.setPreferredSize(new Dimension(65, 18));
            piecesPiecesB.setContentAreaFilled(false);
            piecesPiecesB.setBorder(new SoftBevelBorder(0));
            piecesPiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            piecesPiecesB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            piecesPiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return piecesPiecesB;
    }

    private JButton getPiecesDeliveryB() {
        if (piecesDeliveryB == null) {
            piecesDeliveryB = new JButton();
            piecesDeliveryB.setHorizontalAlignment(2);
            piecesDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            piecesDeliveryB.setPreferredSize(new Dimension(51, 18));
            piecesDeliveryB.setContentAreaFilled(false);
            piecesDeliveryB.setBorder(new SoftBevelBorder(0));
            piecesDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            piecesDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return piecesDeliveryB;
    }

    private JButton getPiecesGroupB() {
        if (piecesGroupB == null) {
            piecesGroupB = new JButton();
            piecesGroupB.setText(Messages.getString("PiecesGUI.group"));
            piecesGroupB.setHorizontalAlignment(2);
            piecesGroupB.setPreferredSize(new Dimension(51, 18));
            piecesGroupB.setContentAreaFilled(false);
            piecesGroupB.setBorder(new SoftBevelBorder(0));
            piecesGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            piecesGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return piecesGroupB;
    }

    private JButton getPiecesPaymentB() {
        if (piecesPaymentB == null) {
            piecesPaymentB = new JButton();
            piecesPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            piecesPaymentB.setHorizontalAlignment(2);
            piecesPaymentB.setPreferredSize(new Dimension(51, 18));
            piecesPaymentB.setContentAreaFilled(false);
            piecesPaymentB.setBorder(new SoftBevelBorder(0));
            piecesPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            piecesPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return piecesPaymentB;
    }

    private JButton getPiecesCustomerB() {
        if (piecesCustomerB == null) {
            piecesCustomerB = new JButton();
            piecesCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            piecesCustomerB.setHorizontalAlignment(2);
            piecesCustomerB.setPreferredSize(new Dimension(51, 18));
            piecesCustomerB.setContentAreaFilled(false);
            piecesCustomerB.setBorder(new SoftBevelBorder(0));
            piecesCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            piecesCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return piecesCustomerB;
    }

    private JButton getPiecesSupplierB() {
        if (piecesSupplierB == null) {
            piecesSupplierB = new JButton();
            piecesSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            piecesSupplierB.setHorizontalAlignment(2);
            piecesSupplierB.setPreferredSize(new Dimension(51, 18));
            piecesSupplierB.setContentAreaFilled(false);
            piecesSupplierB.setBorder(new SoftBevelBorder(0));
            piecesSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            piecesSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return piecesSupplierB;
    }

    private JButton getPiecesItemB() {
        if (piecesItemB == null) {
            piecesItemB = new JButton();
            piecesItemB.setText(Messages.getString("PiecesGUI.item"));
            piecesItemB.setHorizontalAlignment(2);
            piecesItemB.setPreferredSize(new Dimension(51, 18));
            piecesItemB.setContentAreaFilled(false);
            piecesItemB.setBorder(new SoftBevelBorder(0));
            piecesItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            piecesItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return piecesItemB;
    }

    private JButton getDeliveryPiecesB() {
        if (deliveryPiecesB == null) {
            deliveryPiecesB = new JButton();
            deliveryPiecesB.setText(Messages.getString("PiecesGUI.piece"));
            deliveryPiecesB.setHorizontalAlignment(2);
            deliveryPiecesB.setPreferredSize(new Dimension(71, 18));
            deliveryPiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            deliveryPiecesB.setContentAreaFilled(false);
            deliveryPiecesB.setBorder(new SoftBevelBorder(0));
            deliveryPiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return deliveryPiecesB;
    }

    private JButton getDeliveryDeliveryB() {
        if (deliveryDeliveryB == null) {
            deliveryDeliveryB = new JButton();
            deliveryDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            deliveryDeliveryB.setHorizontalAlignment(2);
            deliveryDeliveryB.setPreferredSize(new Dimension(71, 18));
            deliveryDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            deliveryDeliveryB.setContentAreaFilled(false);
            deliveryDeliveryB.setBorder(new SoftBevelBorder(0));
            deliveryDeliveryB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            deliveryDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return deliveryDeliveryB;
    }

    private JButton getDeliveryGroupB() {
        if (deliveryGroupB == null) {
            deliveryGroupB = new JButton();
            deliveryGroupB.setText(Messages.getString("PiecesGUI.group"));
            deliveryGroupB.setHorizontalAlignment(2);
            deliveryGroupB.setPreferredSize(new Dimension(51, 18));
            deliveryGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            deliveryGroupB.setContentAreaFilled(false);
            deliveryGroupB.setBorder(new SoftBevelBorder(0));
            deliveryGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return deliveryGroupB;
    }

    private JButton getDeliveryPaymentB() {
        if (deliveryPaymentB == null) {
            deliveryPaymentB = new JButton();
            deliveryPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            deliveryPaymentB.setHorizontalAlignment(2);
            deliveryPaymentB.setPreferredSize(new Dimension(51, 18));
            deliveryPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            deliveryPaymentB.setContentAreaFilled(false);
            deliveryPaymentB.setBorder(new SoftBevelBorder(0));
            deliveryPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return deliveryPaymentB;
    }

    private JButton getDeliveryCustomerB() {
        if (deliveryCustomerB == null) {
            deliveryCustomerB = new JButton();
            deliveryCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            deliveryCustomerB.setHorizontalAlignment(2);
            deliveryCustomerB.setPreferredSize(new Dimension(51, 18));
            deliveryCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            deliveryCustomerB.setContentAreaFilled(false);
            deliveryCustomerB.setBorder(new SoftBevelBorder(0));
            deliveryCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return deliveryCustomerB;
    }

    private JButton getDeliverySupplierB() {
        if (deliverySupplierB == null) {
            deliverySupplierB = new JButton();
            deliverySupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            deliverySupplierB.setHorizontalAlignment(2);
            deliverySupplierB.setPreferredSize(new Dimension(51, 18));
            deliverySupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            deliverySupplierB.setContentAreaFilled(false);
            deliverySupplierB.setBorder(new SoftBevelBorder(0));
            deliverySupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return deliverySupplierB;
    }

    private JButton getDeliveryItemB() {
        if (deliveryItemB == null) {
            deliveryItemB = new JButton();
            deliveryItemB.setText(Messages.getString("PiecesGUI.item"));
            deliveryItemB.setHorizontalAlignment(2);
            deliveryItemB.setPreferredSize(new Dimension(51, 18));
            deliveryItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            deliveryItemB.setContentAreaFilled(false);
            deliveryItemB.setBorder(new SoftBevelBorder(0));
            deliveryItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return deliveryItemB;
    }

    private JButton getGroupPiecesB() {
        if (groupPiecesB == null) {
            groupPiecesB = new JButton();
            groupPiecesB.setText(Messages.getString("PiecesGUI.piece"));
            groupPiecesB.setHorizontalAlignment(2);
            groupPiecesB.setPreferredSize(new Dimension(63, 18));
            groupPiecesB.setContentAreaFilled(false);
            groupPiecesB.setBorder(new SoftBevelBorder(0));
            groupPiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            groupPiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return groupPiecesB;
    }

    private JButton getGroupDeliveryB() {
        if (groupDeliveryB == null) {
            groupDeliveryB = new JButton();
            groupDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            groupDeliveryB.setHorizontalAlignment(2);
            groupDeliveryB.setPreferredSize(new Dimension(63, 18));
            groupDeliveryB.setContentAreaFilled(false);
            groupDeliveryB.setBorder(new SoftBevelBorder(0));
            groupDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            groupDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return groupDeliveryB;
    }

    private JButton getGroupGroupB() {
        if (groupGroupB == null) {
            groupGroupB = new JButton();
            groupGroupB.setText(Messages.getString("PiecesGUI.group"));
            groupGroupB.setHorizontalAlignment(2);
            groupGroupB.setPreferredSize(new Dimension(63, 18));
            groupGroupB.setContentAreaFilled(false);
            groupGroupB.setBorder(new SoftBevelBorder(0));
            groupGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            groupGroupB.setBackground(new Color(236, 233, 216));
            groupGroupB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            groupGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return groupGroupB;
    }

    private JButton getGroupPaymentB() {
        if (groupPaymentB == null) {
            groupPaymentB = new JButton();
            groupPaymentB.setHorizontalAlignment(2);
            groupPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            groupPaymentB.setPreferredSize(new Dimension(51, 18));
            groupPaymentB.setContentAreaFilled(false);
            groupPaymentB.setBorder(new SoftBevelBorder(0));
            groupPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            groupPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return groupPaymentB;
    }

    private JButton getGroupCustomerB() {
        if (groupCustomerB == null) {
            groupCustomerB = new JButton();
            groupCustomerB.setHorizontalAlignment(2);
            groupCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            groupCustomerB.setPreferredSize(new Dimension(51, 18));
            groupCustomerB.setContentAreaFilled(false);
            groupCustomerB.setBorder(new SoftBevelBorder(0));
            groupCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            groupCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return groupCustomerB;
    }

    private JButton getGroupSupplierB() {
        if (groupSupplierB == null) {
            groupSupplierB = new JButton();
            groupSupplierB.setHorizontalAlignment(2);
            groupSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            groupSupplierB.setPreferredSize(new Dimension(51, 18));
            groupSupplierB.setContentAreaFilled(false);
            groupSupplierB.setBorder(new SoftBevelBorder(0));
            groupSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            groupSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return groupSupplierB;
    }

    private JButton getGroupItemB() {
        if (groupItemB == null) {
            groupItemB = new JButton();
            groupItemB.setHorizontalAlignment(2);
            groupItemB.setText(Messages.getString("PiecesGUI.item"));
            groupItemB.setPreferredSize(new Dimension(51, 18));
            groupItemB.setContentAreaFilled(false);
            groupItemB.setBorder(new SoftBevelBorder(0));
            groupItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            groupItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return groupItemB;
    }

    private JButton getPaymentPieceB() {
        if (paymentPieceB == null) {
            paymentPieceB = new JButton();
            paymentPieceB.setHorizontalAlignment(2);
            paymentPieceB.setText(Messages.getString("PiecesGUI.piece"));
            paymentPieceB.setPreferredSize(new Dimension(73, 18));
            paymentPieceB.setContentAreaFilled(false);
            paymentPieceB.setBorder(new SoftBevelBorder(0));
            paymentPieceB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            paymentPieceB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return paymentPieceB;
    }

    private JButton getPaymentDeliveryB() {
        if (paymentDeliveryB == null) {
            paymentDeliveryB = new JButton();
            paymentDeliveryB.setHorizontalAlignment(2);
            paymentDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            paymentDeliveryB.setPreferredSize(new Dimension(73, 18));
            paymentDeliveryB.setContentAreaFilled(false);
            paymentDeliveryB.setBorder(new SoftBevelBorder(0));
            paymentDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            paymentDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return paymentDeliveryB;
    }

    private JButton getPaymentGroupB() {
        if (paymentGroupB == null) {
            paymentGroupB = new JButton();
            paymentGroupB.setHorizontalAlignment(2);
            paymentGroupB.setText(Messages.getString("PiecesGUI.group"));
            paymentGroupB.setPreferredSize(new Dimension(73, 18));
            paymentGroupB.setContentAreaFilled(false);
            paymentGroupB.setBorder(new SoftBevelBorder(0));
            paymentGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            paymentGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return paymentGroupB;
    }

    private JButton getPaymentPaymentB() {
        if (paymentPaymentB == null) {
            paymentPaymentB = new JButton();
            paymentPaymentB.setHorizontalAlignment(2);
            paymentPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            paymentPaymentB.setPreferredSize(new Dimension(73, 18));
            paymentPaymentB.setContentAreaFilled(false);
            paymentPaymentB.setBorder(new SoftBevelBorder(0));
            paymentPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            paymentPaymentB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            paymentPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return paymentPaymentB;
    }

    private JButton getPaymentCustomerB() {
        if (paymentCustomerB == null) {
            paymentCustomerB = new JButton();
            paymentCustomerB.setHorizontalAlignment(2);
            paymentCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            paymentCustomerB.setPreferredSize(new Dimension(79, 18));
            paymentCustomerB.setContentAreaFilled(false);
            paymentCustomerB.setBorder(new SoftBevelBorder(0));
            paymentCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            paymentCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return paymentCustomerB;
    }

    private JButton getPaymentSupplierB() {
        if (paymentSupplierB == null) {
            paymentSupplierB = new JButton();
            paymentSupplierB.setHorizontalAlignment(2);
            paymentSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            paymentSupplierB.setPreferredSize(new Dimension(79, 18));
            paymentSupplierB.setContentAreaFilled(false);
            paymentSupplierB.setBorder(new SoftBevelBorder(0));
            paymentSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            paymentSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return paymentSupplierB;
    }

    private JButton getPaymentItemB() {
        if (paymentItemB == null) {
            paymentItemB = new JButton();
            paymentItemB.setHorizontalAlignment(2);
            paymentItemB.setText(Messages.getString("PiecesGUI.item"));
            paymentItemB.setPreferredSize(new Dimension(79, 18));
            paymentItemB.setContentAreaFilled(false);
            paymentItemB.setBorder(new SoftBevelBorder(0));
            paymentItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            paymentItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return paymentItemB;
    }

    private JButton getCustomerPiecesB() {
        if (customerPiecesB == null) {
            customerPiecesB = new JButton();
            customerPiecesB.setText(Messages.getString("PiecesGUI.piece"));
            customerPiecesB.setHorizontalAlignment(2);
            customerPiecesB.setPreferredSize(new Dimension(79, 18));
            customerPiecesB.setContentAreaFilled(false);
            customerPiecesB.setBorder(new SoftBevelBorder(0));
            customerPiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            customerPiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return customerPiecesB;
    }

    private JButton getCustomerDeliveryB() {
        if (customerDeliveryB == null) {
            customerDeliveryB = new JButton();
            customerDeliveryB.setHorizontalAlignment(2);
            customerDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            customerDeliveryB.setPreferredSize(new Dimension(79, 18));
            customerDeliveryB.setContentAreaFilled(false);
            customerDeliveryB.setBorder(new SoftBevelBorder(0));
            customerDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            customerDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return customerDeliveryB;
    }

    private JButton getCustomerGroupB() {
        if (customerGroupB == null) {
            customerGroupB = new JButton();
            customerGroupB.setHorizontalAlignment(2);
            customerGroupB.setText(Messages.getString("PiecesGUI.group"));
            customerGroupB.setPreferredSize(new Dimension(79, 18));
            customerGroupB.setContentAreaFilled(false);
            customerGroupB.setBorder(new SoftBevelBorder(0));
            customerGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            customerGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return customerGroupB;
    }

    private JButton getCustomerPaymentB() {
        if (customerPaymentB == null) {
            customerPaymentB = new JButton();
            customerPaymentB.setHorizontalAlignment(2);
            customerPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            customerPaymentB.setPreferredSize(new Dimension(79, 18));
            customerPaymentB.setContentAreaFilled(false);
            customerPaymentB.setBorder(new SoftBevelBorder(0));
            customerPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            customerPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return customerPaymentB;
    }

    private JButton getCustomerCustomerB() {
        if (customerCustomerB == null) {
            customerCustomerB = new JButton();
            customerCustomerB.setHorizontalAlignment(2);
            customerCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            customerCustomerB.setPreferredSize(new Dimension(79, 18));
            customerCustomerB.setContentAreaFilled(false);
            customerCustomerB.setBorder(new SoftBevelBorder(0));
            customerCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            customerCustomerB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            customerCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return customerCustomerB;
    }

    private JButton getCustomerSupplierB() {
        if (customerSupplierB == null) {
            customerSupplierB = new JButton();
            customerSupplierB.setHorizontalAlignment(2);
            customerSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            customerSupplierB.setPreferredSize(new Dimension(51, 18));
            customerSupplierB.setContentAreaFilled(false);
            customerSupplierB.setBorder(new SoftBevelBorder(0));
            customerSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            customerSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return customerSupplierB;
    }

    private JButton getCustomerItemB() {
        if (customerItemB == null) {
            customerItemB = new JButton();
            customerItemB.setHorizontalAlignment(2);
            customerItemB.setText(Messages.getString("PiecesGUI.item"));
            customerItemB.setPreferredSize(new Dimension(51, 18));
            customerItemB.setContentAreaFilled(false);
            customerItemB.setBorder(new SoftBevelBorder(0));
            customerItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            customerItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return customerItemB;
    }

    private JButton getSupplierItemB() {
        if (supplierItemB == null) {
            supplierItemB = new JButton();
            supplierItemB.setHorizontalAlignment(2);
            supplierItemB.setText(Messages.getString("PiecesGUI.item"));
            supplierItemB.setPreferredSize(new Dimension(51, 18));
            supplierItemB.setContentAreaFilled(false);
            supplierItemB.setBorder(new SoftBevelBorder(0));
            supplierItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            supplierItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return supplierItemB;
    }

    private JButton getSupplierPiecesB() {
        if (supplierPiecesB == null) {
            supplierPiecesB = new JButton();
            supplierPiecesB.setHorizontalAlignment(2);
            supplierPiecesB.setText(Messages.getString("PiecesGUI.piece"));
            supplierPiecesB.setPreferredSize(new Dimension(71, 18));
            supplierPiecesB.setContentAreaFilled(false);
            supplierPiecesB.setBorder(new SoftBevelBorder(0));
            supplierPiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            supplierPiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return supplierPiecesB;
    }

    private JButton getSupplierDeliveryB() {
        if (supplierDeliveryB == null) {
            supplierDeliveryB = new JButton();
            supplierDeliveryB.setHorizontalAlignment(2);
            supplierDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            supplierDeliveryB.setPreferredSize(new Dimension(71, 18));
            supplierDeliveryB.setContentAreaFilled(false);
            supplierDeliveryB.setBorder(new SoftBevelBorder(0));
            supplierDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            supplierDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return supplierDeliveryB;
    }

    private JButton getSupplierGroupB() {
        if (supplierGroupB == null) {
            supplierGroupB = new JButton();
            supplierGroupB.setHorizontalAlignment(2);
            supplierGroupB.setText(Messages.getString("PiecesGUI.group"));
            supplierGroupB.setPreferredSize(new Dimension(71, 18));
            supplierGroupB.setContentAreaFilled(false);
            supplierGroupB.setBorder(new SoftBevelBorder(0));
            supplierGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            supplierGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return supplierGroupB;
    }

    private JButton getSupplierPaymentB() {
        if (supplierPaymentB == null) {
            supplierPaymentB = new JButton();
            supplierPaymentB.setHorizontalAlignment(2);
            supplierPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            supplierPaymentB.setPreferredSize(new Dimension(71, 18));
            supplierPaymentB.setContentAreaFilled(false);
            supplierPaymentB.setBorder(new SoftBevelBorder(0));
            supplierPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            supplierPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return supplierPaymentB;
    }

    private JButton getSupplierCustomerB() {
        if (supplierCustomerB == null) {
            supplierCustomerB = new JButton();
            supplierCustomerB.setHorizontalAlignment(2);
            supplierCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            supplierCustomerB.setPreferredSize(new Dimension(71, 18));
            supplierCustomerB.setContentAreaFilled(false);
            supplierCustomerB.setBorder(new SoftBevelBorder(0));
            supplierCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            supplierCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return supplierCustomerB;
    }

    private JButton getSupplierSupplierB() {
        if (supplierSupplierB == null) {
            supplierSupplierB = new JButton();
            supplierSupplierB.setHorizontalAlignment(2);
            supplierSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            supplierSupplierB.setPreferredSize(new Dimension(71, 18));
            supplierSupplierB.setContentAreaFilled(false);
            supplierSupplierB.setBorder(new SoftBevelBorder(0));
            supplierSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            supplierSupplierB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            supplierSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return supplierSupplierB;
    }

    private JButton getItemPiecesB() {
        if (itemPiecesB == null) {
            itemPiecesB = new JButton();
            itemPiecesB.setHorizontalAlignment(2);
            itemPiecesB.setText(Messages.getString("PiecesGUI.piece"));
            itemPiecesB.setPreferredSize(new Dimension(51, 18));
            itemPiecesB.setContentAreaFilled(false);
            itemPiecesB.setBorder(new SoftBevelBorder(0));
            itemPiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            itemPiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return itemPiecesB;
    }

    private JButton getItemDeliveryB() {
        if (itemDeliveryB == null) {
            itemDeliveryB = new JButton();
            itemDeliveryB.setHorizontalAlignment(2);
            itemDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            itemDeliveryB.setPreferredSize(new Dimension(51, 18));
            itemDeliveryB.setContentAreaFilled(false);
            itemDeliveryB.setBorder(new SoftBevelBorder(0));
            itemDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            itemDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return itemDeliveryB;
    }

    private JButton getItemGroupB() {
        if (itemGroupB == null) {
            itemGroupB = new JButton();
            itemGroupB.setHorizontalAlignment(2);
            itemGroupB.setText(Messages.getString("PiecesGUI.group"));
            itemGroupB.setPreferredSize(new Dimension(51, 18));
            itemGroupB.setContentAreaFilled(false);
            itemGroupB.setBorder(new SoftBevelBorder(0));
            itemGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            itemGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return itemGroupB;
    }

    private JButton getItemPaymentB() {
        if (itemPaymentB == null) {
            itemPaymentB = new JButton();
            itemPaymentB.setHorizontalAlignment(2);
            itemPaymentB.setText(Messages.getString("PiecesGUI.payment"));
            itemPaymentB.setPreferredSize(new Dimension(51, 18));
            itemPaymentB.setContentAreaFilled(false);
            itemPaymentB.setBorder(new SoftBevelBorder(0));
            itemPaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            itemPaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return itemPaymentB;
    }

    private JButton getItemCustomerB() {
        if (itemCustomerB == null) {
            itemCustomerB = new JButton();
            itemCustomerB.setHorizontalAlignment(2);
            itemCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            itemCustomerB.setPreferredSize(new Dimension(51, 18));
            itemCustomerB.setContentAreaFilled(false);
            itemCustomerB.setBorder(new SoftBevelBorder(0));
            itemCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            itemCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return itemCustomerB;
    }

    private JButton getItemSupplierB() {
        if (itemSupplierB == null) {
            itemSupplierB = new JButton();
            itemSupplierB.setHorizontalAlignment(2);
            itemSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            itemSupplierB.setPreferredSize(new Dimension(51, 18));
            itemSupplierB.setContentAreaFilled(false);
            itemSupplierB.setBorder(new SoftBevelBorder(0));
            itemSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            itemSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return itemSupplierB;
    }

    private JButton getItemItemB() {
        if (itemItemB == null) {
            itemItemB = new JButton();
            itemItemB.setHorizontalAlignment(2);
            itemItemB.setText(Messages.getString("PiecesGUI.item"));
            itemItemB.setPreferredSize(new Dimension(51, 18));
            itemItemB.setContentAreaFilled(false);
            itemItemB.setBorder(new SoftBevelBorder(0));
            itemItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            itemItemB.setFont(new Font("Microsoft Sans Serif", 1, 12));
            itemItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getWelcomeJPanel().getName());
                }
            });
        }
        return itemItemB;
    }

    private JPanel getWelcomeJPanel() {
        if (welcomeJPanel == null) {
            welcomeJPanel = new JPanel();
            welcomeJPanel.setLayout(new BorderLayout());
            welcomeJPanel.setName("welcomeJPanel");
            welcomeJPanel.add(getWelcomeStatJPanel(), "North");
            welcomeJPanel.add(getWelcomeButtonPanel(), "South");
        }
        return welcomeJPanel;
    }

    private JPanel getWelcomeStatJPanel() {
        if (welcomeStatJPanel == null) {
            welcomeStatJPanel = new JPanel();
            welcomeStatJPanel.setLayout(new BorderLayout());
            welcomeStatJPanel.setBorder(BorderFactory.createLineBorder(new Color(51, 153, 255), 2));
            welcomeStatJPanel.add(getStatisticsWelcomePiecesGUI(), "North");
            welcomeStatJPanel.add(getReminderWPGUI(), "Center");
        }
        return welcomeStatJPanel;
    }

    private JPanel getWelcomeButtonPanel() {
        if (welcomeButtonPanel == null) {
            GridLayout gridLayout15 = new GridLayout();
            welcomeButtonPanel = new JPanel();
            welcomeButtonPanel.setLayout(gridLayout15);
            welcomeButtonPanel.add(getWelcomePiecesB(), null);
            welcomeButtonPanel.add(getWelcomeDeliveryB(), null);
            welcomeButtonPanel.add(getWelcomeGroupB(), null);
            welcomeButtonPanel.add(getWelcomePaymentB(), null);
            welcomeButtonPanel.add(getWelcomeCustomerB(), null);
            welcomeButtonPanel.add(getWelcomeSupplierB(), null);
            welcomeButtonPanel.add(getWelcomeItemB(), null);
            gridLayout15.setRows(7);
            gridLayout15.setColumns(1);
        }
        return welcomeButtonPanel;
    }

    private JButton getWelcomePiecesB() {
        if (welcomePiecesB == null) {
            welcomePiecesB = new JButton();
            welcomePiecesB.setText(Messages.getString("PiecesGUI.piece"));
            welcomePiecesB.setHorizontalAlignment(2);
            welcomePiecesB.setPreferredSize(new Dimension(51, 18));
            welcomePiecesB.setBorderPainted(true);
            welcomePiecesB.setContentAreaFilled(false);
            welcomePiecesB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/pieces16x16.png")));
            welcomePiecesB.setBorder(new SoftBevelBorder(0));
            welcomePiecesB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
                }
            });
        }
        return welcomePiecesB;
    }

    private JButton getWelcomeDeliveryB() {
        if (welcomeDeliveryB == null) {
            welcomeDeliveryB = new JButton();
            welcomeDeliveryB.setHorizontalAlignment(2);
            welcomeDeliveryB.setText(Messages.getString("PiecesGUI.delivery"));
            welcomeDeliveryB.setPreferredSize(new Dimension(51, 18));
            welcomeDeliveryB.setBorderPainted(true);
            welcomeDeliveryB.setContentAreaFilled(false);
            welcomeDeliveryB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/delivery16x16.png")));
            welcomeDeliveryB.setBorder(new SoftBevelBorder(0));
            welcomeDeliveryB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getDeliveryJPanel().getName());
                }
            });
        }
        return welcomeDeliveryB;
    }

    private JButton getWelcomeGroupB() {
        if (welcomeGroupB == null) {
            welcomeGroupB = new JButton();
            welcomeGroupB.setHorizontalAlignment(2);
            welcomeGroupB.setText(Messages.getString("PiecesGUI.group"));
            welcomeGroupB.setPreferredSize(new Dimension(51, 18));
            welcomeGroupB.setBorderPainted(true);
            welcomeGroupB.setContentAreaFilled(false);
            welcomeGroupB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/group16x16.png")));
            welcomeGroupB.setBorder(new SoftBevelBorder(0));
            welcomeGroupB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getGroupDelivertNoteJPanel().getName());
                }
            });
        }
        return welcomeGroupB;
    }

    private JButton getWelcomePaymentB() {
        if (welcomePaymentB == null) {
            welcomePaymentB = new JButton();
            welcomePaymentB.setHorizontalAlignment(2);
            welcomePaymentB.setText(Messages.getString("PiecesGUI.payment"));
            welcomePaymentB.setPreferredSize(new Dimension(51, 18));
            welcomePaymentB.setBorderPainted(true);
            welcomePaymentB.setContentAreaFilled(false);
            welcomePaymentB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/payment16x16.png")));
            welcomePaymentB.setBorder(new SoftBevelBorder(0));
            welcomePaymentB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPaymentJPanel().getName());
                }
            });
        }
        return welcomePaymentB;
    }

    private JButton getWelcomeCustomerB() {
        if (welcomeCustomerB == null) {
            welcomeCustomerB = new JButton();
            welcomeCustomerB.setHorizontalAlignment(2);
            welcomeCustomerB.setText(Messages.getString("PiecesGUI.customer"));
            welcomeCustomerB.setPreferredSize(new Dimension(51, 18));
            welcomeCustomerB.setBorderPainted(true);
            welcomeCustomerB.setContentAreaFilled(false);
            welcomeCustomerB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/customerList16x16.png")));
            welcomeCustomerB.setBorder(new SoftBevelBorder(0));
            welcomeCustomerB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getCustomerJPanel().getName());
                }
            });
        }
        return welcomeCustomerB;
    }

    private JButton getWelcomeSupplierB() {
        if (welcomeSupplierB == null) {
            welcomeSupplierB = new JButton();
            welcomeSupplierB.setHorizontalAlignment(2);
            welcomeSupplierB.setText(Messages.getString("PiecesGUI.supplier"));
            welcomeSupplierB.setPreferredSize(new Dimension(51, 18));
            welcomeSupplierB.setBorderPainted(true);
            welcomeSupplierB.setContentAreaFilled(false);
            welcomeSupplierB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/supplierList16x16.png")));
            welcomeSupplierB.setBorder(new SoftBevelBorder(0));
            welcomeSupplierB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getSupplierJPanel().getName());
                }
            });
        }
        return welcomeSupplierB;
    }

    private JButton getWelcomeItemB() {
        if (welcomeItemB == null) {
            welcomeItemB = new JButton();
            welcomeItemB.setHorizontalAlignment(2);
            welcomeItemB.setText(Messages.getString("PiecesGUI.item"));
            welcomeItemB.setPreferredSize(new Dimension(51, 18));
            welcomeItemB.setBorderPainted(true);
            welcomeItemB.setContentAreaFilled(false);
            welcomeItemB.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/me/images/itemList16x16.png")));
            welcomeItemB.setBorder(new SoftBevelBorder(0));
            welcomeItemB.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getItemJPanel().getName());
                }
            });
        }
        return welcomeItemB;
    }

    private SearchBox getPiecesSearch() {
        if (piecesSearch == null) {
            piecesSearch = new SearchBox();
            piecesSearch.setPreferredSize(piecesSearch.getSize());
            piecesSearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    piecesSearch.setPreferredSize(piecesSearch.getSize());
                    getPieceMainJPanel().revalidate();
                }
            });
        }
        return piecesSearch;
    }

    private TableViewer getPiecesTable() {
        if (piecesTable == null) {
            piecesTable = new TableViewer();
        }
        return piecesTable;
    }

    private SearchBox getDeliverySearch() {
        if (deliverySearch == null) {
            deliverySearch = new SearchBox();
            deliverySearch.setPreferredSize(deliverySearch.getSize());
            deliverySearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    deliverySearch.setPreferredSize(deliverySearch.getSize());
                    getDeliveryMainJPanel().revalidate();
                }
            });
        }
        return deliverySearch;
    }

    private TableViewer getDeliveryTable() {
        if (deliveryTable == null) {
            deliveryTable = new TableViewer();
        }
        return deliveryTable;
    }

    private SearchBox getGroupSearch() {
        if (groupSearch == null) {
            groupSearch = new SearchBox();
            groupSearch.setPreferredSize(groupSearch.getSize());
            groupSearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    groupSearch.setPreferredSize(groupSearch.getSize());
                    getGroupMainJPanel().revalidate();
                }
            });
        }
        return groupSearch;
    }

    private TableViewerS getGroupTable() {
        if (groupTable == null) {
            groupTable = new TableViewerS();
        }
        return groupTable;
    }

    private TableViewer getPaymentTable() {
        if (paymentTable == null) {
            paymentTable = new TableViewer();
        }
        return paymentTable;
    }

    private SearchBox getCustomerSearch() {
        if (customerSearch == null) {
            customerSearch = new SearchBox();
            customerSearch.setPreferredSize(customerSearch.getSize());
            customerSearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    customerSearch.setPreferredSize(customerSearch.getSize());
                    getCustomerMainJPanel().revalidate();
                }
            });
        }
        return customerSearch;
    }

    private TableViewer getCustomerTable() {
        if (customerTable == null) {
            customerTable = new TableViewer();
        }
        return customerTable;
    }

    private SearchBox getSupplierSearch() {
        if (supplierSearch == null) {
            supplierSearch = new SearchBox();
            supplierSearch.setPreferredSize(supplierSearch.getSize());
            supplierSearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    supplierSearch.setPreferredSize(supplierSearch.getSize());
                    getSupplierMainJPanel().revalidate();
                }
            });
        }
        return supplierSearch;
    }

    private TableViewer getSupplierTable() {
        if (supplierTable == null) {
            supplierTable = new TableViewer();
        }
        return supplierTable;
    }

    private SearchBox getItemSearch() {
        if (itemSearch == null) {
            itemSearch = new SearchBox();
            itemSearch.setPreferredSize(itemSearch.getSize());
            itemSearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    itemSearch.setPreferredSize(itemSearch.getSize());
                    getItemMainJPanel().revalidate();
                }
            });
        }
        return itemSearch;
    }

    private TableViewer getItemTable() {
        if (itemTable == null) {
            itemTable = new TableViewer();
        }
        return itemTable;
    }

    private TableViewer getPaymentListTable() {
        if (paymentListTable == null) {
            paymentListTable = new TableViewer();
        }
        return paymentListTable;
    }

    private TableViewer getReminderTable() {
        if (reminderTable == null) {
            reminderTable = new TableViewer();
        }
        return reminderTable;
    }

    private JPanel getPaymentListJPanel() {
        if (paymentListJPanel == null) {
            paymentListJPanel = new JPanel();
            paymentListJPanel.setLayout(new BorderLayout());
            paymentListJPanel.add(getPaymentSearch(), "North");
            paymentListJPanel.add(getPaymentListTable(), "Center");
        }
        return paymentListJPanel;
    }

    private JSplitPane getJSplitPane1() {
        if (jSplitPane1 == null) {
            jSplitPane1 = new JSplitPane();
            jSplitPane1.setOrientation(0);
            jSplitPane1.setTopComponent(getPaymentTable());
            jSplitPane1.setDividerLocation(100);
            jSplitPane1.setBottomComponent(getPaymentListJPanel());
            jSplitPane1.setOneTouchExpandable(true);
        }
        return jSplitPane1;
    }

    private JSplitPane getPaymentJSplitPane() {
        if (paymentJSplitPane == null) {
            paymentJSplitPane = new JSplitPane();
            paymentJSplitPane.setOrientation(0);
            paymentJSplitPane.setTopComponent(getJSplitPane1());
            paymentJSplitPane.setDividerLocation(420);
            paymentJSplitPane.setBottomComponent(getBottomJPanel());
            paymentJSplitPane.setOneTouchExpandable(true);
        }
        return paymentJSplitPane;
    }

    private SearchBox getPaymentSearch() {
        if (paymentSearch == null) {
            paymentSearch = new SearchBox();
            paymentSearch.setPreferredSize(paymentSearch.getSize());
            paymentSearch.addPropertyChangeListener("icon", new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent e) {
                    paymentSearch.setPreferredSize(paymentSearch.getSize());
                    getPaymentMainJPanel().revalidate();
                }
            });
        }
        return paymentSearch;
    }

    private JPanel getBottomJPanel() {
        if (bottomJPanel == null) {
            bottomJPanel = new JPanel();
            bottomJPanel.setLayout(new BorderLayout());
            bottomJPanel.add(getReminderTable(), "Center");
        }
        return bottomJPanel;
    }

    private StatisticsWelcomePiecesGUI getStatisticsWelcomePiecesGUI() {
        if (statisticsWelcomePiecesGUI == null) {
            statisticsWelcomePiecesGUI = new StatisticsWelcomePiecesGUI();
        }
        return statisticsWelcomePiecesGUI;
    }

    private ReminderWPGUI getReminderWPGUI() {
        if (reminderWPGUI == null) {
            reminderWPGUI = new ReminderWPGUI();
            reminderWPGUI.setPreferredSize(new Dimension(463, 200));
        }
        return reminderWPGUI;
    }

    public void setParameter(Parameter param) {
        this.param = param;
    }

    public BasicMenu getMenu() {
        return getBasicMenu();
    }

    public IconBar getIconBar() {
        return getIconBarPanel();
    }

    public void addPiece(String title, Icon icon, Component component, String tip) {
        getPiecesJTabbedPane().addTab(title, icon, component, tip);
        getPiecesJTabbedPane().setSelectedComponent(component);
    }

    public void setSelectedPiece(int index, Icon icon) {
        getPiecesJTabbedPane().setSelectedIndex(index);
        getPiecesJTabbedPane().setIconAt(index, icon);
    }

    public String getTitlePiece(int index) {
        return getPiecesJTabbedPane().getTitleAt(index);
    }

    public int getPiecesCount() {
        return getPiecesJTabbedPane().getTabCount();
    }

    public void removePiece() {
        if (getPiecesJTabbedPane().getSelectedIndex() != -1) {
            getPiecesJTabbedPane().removeTabAt(getPiecesJTabbedPane().getSelectedIndex());
        }
    }

    public void setIconPiece(Icon icon) {
        getPiecesJTabbedPane().setIconAt(getPiecesJTabbedPane().getSelectedIndex(), icon);
    }

    public Component getSelectedPiece() {
        return getPiecesJTabbedPane().getSelectedComponent();
    }

    public void removeAllPieces() {
        getPiecesJTabbedPane().removeAll();
    }

    public SearchBox getPiecesSearchBox() {
        return getPiecesSearch();
    }

    public TableViewer getPiecesTableViewer() {
        return getPiecesTable();
    }

    public SearchBox getDeliverySearchBox() {
        return getDeliverySearch();
    }

    public TableViewer getDeliveryTableViewer() {
        return getDeliveryTable();
    }

    public TableViewerS getGroupTableViewer() {
        return getGroupTable();
    }

    public SearchBox getCustomerSearchBox() {
        return getCustomerSearch();
    }

    public TableViewer getCustomerTableViewer() {
        return getCustomerTable();
    }

    public SearchBox getSupplierSearchBox() {
        return getSupplierSearch();
    }

    public TableViewer getSupplierTableViewer() {
        return getSupplierTable();
    }

    public SearchBox getItemSearchBox() {
        return getItemSearch();
    }

    public TableViewer getItemTableViewer() {
        return getItemTable();
    }

    public SearchBox getPaymentSearchBox() {
        return getPaymentSearch();
    }

    public TableViewer getPaymentTableViewer() {
        return getPaymentTable();
    }

    public TableViewer getPaymentListTableViewer() {
        return getPaymentListTable();
    }

    public TableViewer getReminderTableViewer() {
        return getReminderTable();
    }

    public JButton getWelcomePiecesButton() {
        return getWelcomePiecesB();
    }

    public JButton getWelcomeDeliveryButton() {
        return getWelcomeDeliveryB();
    }

    public JButton getWelcomeGroupButton() {
        return getWelcomeGroupB();
    }

    public JButton getWelcomePaymentButton() {
        return getWelcomePaymentB();
    }

    public JButton getWelcomeCustomerButton() {
        return getWelcomeCustomerB();
    }

    public JButton getWelcomeSupplierButton() {
        return getWelcomeSupplierB();
    }

    public JButton getWelcomeItemButton() {
        return getWelcomeItemB();
    }

    public JButton getPiecesPiecesButton() {
        return getPiecesPiecesB();
    }

    public JButton getPiecesDeliveryButton() {
        return getPiecesDeliveryB();
    }

    public JButton getPiecesGroupButton() {
        return getPiecesGroupB();
    }

    public JButton getPiecesPaymentButton() {
        return getPiecesPaymentB();
    }

    public JButton getPiecesCustomerButton() {
        return getPiecesCustomerB();
    }

    public JButton getPiecesSupplierButton() {
        return getPiecesSupplierB();
    }

    public JButton getPiecesItemButton() {
        return getPiecesItemB();
    }

    public JButton getDeliveryPiecesButton() {
        return getDeliveryPiecesB();
    }

    public JButton getDeliveryDeliveryButton() {
        return getDeliveryDeliveryB();
    }

    public JButton getDeliveryGroupButton() {
        return getDeliveryGroupB();
    }

    public JButton getDeliveryPaymentButton() {
        return getDeliveryPaymentB();
    }

    public JButton getDeliveryCustomerButton() {
        return getDeliveryCustomerB();
    }

    public JButton getDeliverySupplierButton() {
        return getDeliverySupplierB();
    }

    public JButton getDeliveryItemButton() {
        return getDeliveryItemB();
    }

    public JButton getGroupPiecesButton() {
        return getGroupPiecesB();
    }

    public JButton getGroupDeliveryButton() {
        return getGroupDeliveryB();
    }

    public JButton getGroupGroupButton() {
        return getGroupGroupB();
    }

    public JButton getGroupPaymentButton() {
        return getGroupPaymentB();
    }

    public JButton getGroupCustomerButton() {
        return getGroupCustomerB();
    }

    public JButton getGroupSupplierButton() {
        return getGroupSupplierB();
    }

    public JButton getGroupItemButton() {
        return getGroupItemB();
    }

    public JButton getPaymentPieceButton() {
        return getPaymentPieceB();
    }

    public JButton getPaymentDeliveryButton() {
        return getPaymentDeliveryB();
    }

    public JButton getPaymentGroupButton() {
        return getPaymentGroupB();
    }

    public JButton getPaymentPaymentButton() {
        return getPaymentPaymentB();
    }

    public JButton getPaymentCustomerButton() {
        return getPaymentCustomerB();
    }

    public JButton getPaymentSupplierButton() {
        return getPaymentSupplierB();
    }

    public JButton getPaymentItemButton() {
        return getPaymentItemB();
    }

    public JButton getCustomerPiecesButton() {
        return getCustomerPiecesB();
    }

    public JButton getCustomerDeliveryButton() {
        return getCustomerDeliveryB();
    }

    public JButton getCustomerGroupButton() {
        return getCustomerGroupB();
    }

    public JButton getCustomerPaymentButton() {
        return getCustomerPaymentB();
    }

    public JButton getCustomerCustomerButton() {
        return getCustomerCustomerB();
    }

    public JButton getCustomerSupplierButton() {
        return getCustomerSupplierB();
    }

    public JButton getCustomerItemButton() {
        return getCustomerItemB();
    }

    public JButton getSupplierItemButton() {
        return getSupplierItemB();
    }

    public JButton getSupplierPiecesButton() {
        return getSupplierPiecesB();
    }

    public JButton getSupplierDeliveryButton() {
        return getSupplierDeliveryB();
    }

    public JButton getSupplierGroupButton() {
        return getSupplierGroupB();
    }

    public JButton getSupplierPaymentButton() {
        return getSupplierPaymentB();
    }

    public JButton getSupplierCustomerButton() {
        return getSupplierCustomerB();
    }

    public JButton getSupplierSupplierButton() {
        return getSupplierSupplierB();
    }

    public JButton getItemPiecesButton() {
        return getItemPiecesB();
    }

    public JButton getItemDeliveryButton() {
        return getItemDeliveryB();
    }

    public JButton getItemGroupButton() {
        return getItemGroupB();
    }

    public JButton getItemPaymentButton() {
        return getItemPaymentB();
    }

    public JButton getItemCustomerButton() {
        return getItemCustomerB();
    }

    public JButton getItemSupplierButton() {
        return getItemSupplierB();
    }

    public JButton getItemItemButton() {
        return getItemItemB();
    }

    public SearchBox getGroupSearchBox() {
        return getGroupSearch();
    }

    public LabelDateButton getGroupExecutPanel() {
        return getGroupExecut();
    }

    public StatisticsWelcomePiecesGUI getStatisticsWPGUI() {
        return getStatisticsWelcomePiecesGUI();
    }

    public ReminderWPGUI getReminderWPGUIPanel() {
        return getReminderWPGUI();
    }

    public void openPiecesPanel() {
        ((CardLayout) getListJPanel().getLayout()).show(getListJPanel(), getPiecesJPanel().getName());
    }

    public JTabbedPane getPiecesTabbedPane() {
        return getPiecesJTabbedPane();
    }
    private Parameter param;
    private Dimension screen;
    private JPanel mainPanel;
    private JSplitPane mainJSplitPane;
    private JTabbedPane piecesJTabbedPane;
    private JPanel listJPanel;
    private BasicMenu basicMenu;
    private IconBar iconBar;
    private JPanel paymentJPanel;
    private JPanel customerJPanel;
    private JPanel supplierJPanel;
    private JPanel itemJPanel;
    private JPanel piecesJPanel;
    private JPanel deliveryJPanel;
    private JPanel groupDeliveryNoteJPanel;
    private JPanel pieceButtonTopJPanel;
    private JPanel pieceMainJPanel;
    private JPanel pieceButtonBottomJPanel;
    private JPanel deliveryButtonTopJPanel;
    private JPanel deliveryMainJPanel;
    private JPanel deliveryButtonBottomJPanel;
    private JPanel groupButtonTopJPanel;
    private JPanel groupMainJPanel;
    private JPanel groupButtonBottomJPanel;
    private JPanel paymentButtonTopJPanel;
    private JPanel paymentMainJPanel;
    private JPanel paymentButtonBottomJPanel;
    private JPanel customerButtonTopJPanel;
    private JPanel customerMainJPanel;
    private JPanel customerButtonBottomJPanel;
    private JPanel supplierBottonTopJPanel;
    private JPanel supplierMainJPanel;
    private JPanel supplierButtonBottomJPanel;
    private JPanel itemButtonBottomJPanel;
    private JPanel itemButtonTopJPanel;
    private JPanel itemMainJPanel;
    private JButton piecesPiecesB;
    private JButton piecesDeliveryB;
    private JButton piecesGroupB;
    private JButton piecesPaymentB;
    private JButton piecesCustomerB;
    private JButton piecesSupplierB;
    private JButton piecesItemB;
    private JButton deliveryPiecesB;
    private JButton deliveryDeliveryB;
    private JButton deliveryGroupB;
    private JButton deliveryPaymentB;
    private JButton deliveryCustomerB;
    private JButton deliverySupplierB;
    private JButton deliveryItemB;
    private JButton groupPiecesB;
    private JButton groupDeliveryB;
    private JButton groupGroupB;
    private JButton groupPaymentB;
    private JButton groupCustomerB;
    private JButton groupSupplierB;
    private JButton groupItemB;
    private JButton paymentPieceB;
    private JButton paymentDeliveryB;
    private JButton paymentGroupB;
    private JButton paymentPaymentB;
    private JButton paymentCustomerB;
    private JButton paymentSupplierB;
    private JButton paymentItemB;
    private JButton customerPiecesB;
    private JButton customerDeliveryB;
    private JButton customerGroupB;
    private JButton customerPaymentB;
    private JButton customerCustomerB;
    private JButton customerSupplierB;
    private JButton customerItemB;
    private JButton supplierItemB;
    private JButton supplierPiecesB;
    private JButton supplierDeliveryB;
    private JButton supplierGroupB;
    private JButton supplierPaymentB;
    private JButton supplierCustomerB;
    private JButton supplierSupplierB;
    private JButton itemPiecesB;
    private JButton itemDeliveryB;
    private JButton itemGroupB;
    private JButton itemPaymentB;
    private JButton itemCustomerB;
    private JButton itemSupplierB;
    private JButton itemItemB;
    private JPanel welcomeJPanel;
    private JPanel welcomeStatJPanel;
    private JPanel welcomeButtonPanel;
    private JButton welcomePiecesB;
    private JButton welcomeDeliveryB;
    private JButton welcomeGroupB;
    private JButton welcomePaymentB;
    private JButton welcomeCustomerB;
    private JButton welcomeSupplierB;
    private JButton welcomeItemB;
    private SearchBox piecesSearch;
    private TableViewer piecesTable;
    private SearchBox deliverySearch;
    private TableViewer deliveryTable;
    private TableViewerS groupTable;
    private TableViewer paymentTable;
    private SearchBox customerSearch;
    private TableViewer customerTable;
    private SearchBox supplierSearch;
    private TableViewer supplierTable;
    private SearchBox itemSearch;
    private TableViewer itemTable;
    private TableViewer paymentListTable;
    private TableViewer reminderTable;
    private JPanel paymentListJPanel;
    private JSplitPane jSplitPane1;
    private JSplitPane paymentJSplitPane;
    private SearchBox paymentSearch;
    private SearchBox groupSearch;
    private LabelDateButton groupExecut;
    private JPanel bottomJPanel;
    private StatisticsWelcomePiecesGUI statisticsWelcomePiecesGUI;
    private PopupPieceGUI popupPiece;
    private ReminderWPGUI reminderWPGUI;
}
